package com.Thread.Demo7;

/**
 * @ClassName Test
 * @Description TODO
 * @Author Kx
 * @Date 2025/3/12 11:43
 * @Version 1.0
 */
public class Test {
    public static void main(String[] args) {
        // 创建账户
        Account account = new Account();
        account.setBalance(5000);

        // 创建两个顾客
        Customer customer1 = new Customer(account,3000,"老公");
        Customer customer2 = new Customer(account,5000,"老婆");

        // 开启线程
        customer1.start();
        customer2.start();
    }
}
